﻿@model vcity.Models.RegisterModel
@using (Html.BeginForm())
{<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
	<h2>Регистрация нового пользователя:</h2>
						<table class="login-table register">
							<tr>
								<td>
									<label for="username">Логин (380671234567)</label><br>
                                       @Html.TextBoxFor(m => m.UserName)
                                       @Html.ValidationMessageFor(m => m.UserName)
								</td>
								<td>
									<label for="password">Пароль</label><br>
									 @Html.PasswordFor(m => m.Password)
                                     @Html.ValidationMessageFor(m => m.Password)
								</td>
								<td>
									<label for="password_submit">Пароль еще раз</label><br>
									@Html.PasswordFor(m => m.ConfirmPassword)
                                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
								</td>
							</tr>
							<tr>
								<td>
									<label for="email">E-mail</label><br>
									 @Html.TextBoxFor(m => m.Email)
                                     @Html.ValidationMessageFor(m => m.Email)
								</td>
								<td>
									<label for="surname">Фамилия</label><br>
									 @Html.TextBoxFor(m => m.SurName)
                                     @Html.ValidationMessageFor(m => m.SurName)
								</td>
								<td>
									<label for="name">Имя</label><br>
									 @Html.TextBoxFor(m => m.Name)
                                     @Html.ValidationMessageFor(m => m.Name)
								</td>
							</tr>
							<tr>
								<td>
									<label for="birthdate">Дата рождения</label><br>
									 @Html.TextBoxFor(m => m.Birthdate)
                                     @Html.ValidationMessageFor(m => m.Birthdate)
								</td>
								<td>
									<label for="country">Страна</label><br>
									 @Html.TextBoxFor(m => m.Country)
                                     @Html.ValidationMessageFor(m => m.Country)
								</td>
								<td>
									<label for="city">Город</label><br>
									 @Html.TextBoxFor(m => m.City)
                                     @Html.ValidationMessageFor(m => m.City)
								</td>
							</tr>
							<tr>
								<td>
								</td>
								<td>
								</td>
								<td class="aligned-right">
                                <button type="submit" id="test" class="btn-green" onclick="">Регистрация</button>
                                                            
								</td>
							</tr>
						</table>
}